function show_tbcanshu() {
    var psize = 18;
    var store;
    var jReader1;
    
	 var p_grid = new Ext.Panel( {
	        region : 'center',
	        frame : true,
	        title : '指标列表',
	        deferredRender : false,
//	        activeTab : 0,
	        frame : true,
	        html : '<div id="grid_tbcnashu"></div>'           
	    })
	
	 var jReader1 = new Ext.data.JsonReader( {
	     root : 'data',
	     totalProperty : 'totalCount',
	     fields : [{
	         name : 'repid'
	     }, {
	         name : 'repcode'
	     }, {
	         name : 'repname'
	     }, {
	         name : 'cataname'
	     }]
	 });
	 
	 openUrl=basePath + 'JarpListener?className=cn.com.jsepc.rep.report.GetRepPara';
	 openUrl += '&methodName=get_rep_para_fac&paramCount=3';
		
	store = new Ext.data.Store( {
	     //storeId : 'store1',
	     proxy : new Ext.data.HttpProxy( {
	         url : openUrl
	     }),
	     reader : jReader1,
	     baseParams : {
	         param_0 : 0,
	         param_1 : psize,
	         param_2 : Ext.ComponentMgr.get("get_p_id").getValue()
	     }
	 });
	 
	
	 var sm = new Ext.grid.CheckboxSelectionModel({
	 	singleSelect : true
	  });
		
	 var cm = new Ext.grid.ColumnModel( [
	     sm,							
	     {
	         header : '指标编号',
	         sortable : true,
	         hidden : true,
	         dataIndex : 'repid'
	     },{
	         header : '指标编码',
	         sortable : true,
	         dataIndex : 'repcode'
	     },{
	         header : '指标名称',
	         sortable : true,
	         dataIndex : 'repname'
	     }, {
	         header : '所属分类',
	         sortable : true,
	         //  hidden : true,
	         dataIndex : 'cataname'
	     }
	     ]);
		     
	 cm.defaultSortable = true;
	 var grid_tbcanshu = new Ext.grid.GridPanel({
	     region : 'center',
	     store : store,
	     id:'grid_tbcanshu',
	     viewConfig : {
	         forceFit : true
	     },
	     sm : sm,
	     cm : cm,
	     frame : true,
	     columnLines : true,
	     loadMask:true,
	     region:"center",
	     height:500,
	     stateful : true,
	     stateId : 'grid_tbcanshu',
	     bbar : new Ext.PagingToolbar( {
	         store : store,
	         paramNames : {
	             start : 'param_0',
	             limit : 'param_1'
	         },
	         emptyMsg : '没有数据需要显示',
	         displayInfo : true,
	         pageSize : 15
	     })
	 }); 
	 store.load();
 
	// grid_tbcanshu.render('grid_tbcnashu');
 
 
	var win_tbcanshu = new Ext.Window( {
		layout : 'fit',
		width : 800,
		height : 600,
		closeAction : 'close',
		plain : true,
		modal : true,
		layout : "border",
		tbar : [ '-', {
			text : "数据填报",
			handler : function() {
            var re_grid = Ext.ComponentMgr.get("grid_tbcanshu").getSelectionModel().getSelected();
            if (re_grid){
             var repid=re_grid.data.repid;
                 //判断
              window.showModalDialog("filldata.jsp?repid="+repid, '','dialogWidth=900px;dialogHeight=700px;status:no;resizable:yes;Minimize=yes;Maximize=yes;');
		}else{
			Ext.Msg.alert('提示','请选择指标');
		}
      
			}
		}, '-', {
			text : "关闭",
			handler : function() {
			win_tbcanshu.close();
			}
		},'-' ],items : [ grid_tbcanshu ]
	})
	win_tbcanshu.show(this);
 
	
 
}